﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EnterApp.Core.DomainModel;
using OnlyMusic.DomainModel.Roles;

namespace OnlyMusic.DomainModel.Entities
{
    public class SongStoreInfo : AggregateRoot<UniqueId>
    {
        public SongStoreInfo(Song song, IUploader uploader, DateTime uploadTime, string location)
            : this(new UniqueId(), song, uploader, uploadTime, location)
        {
        }

        public SongStoreInfo(UniqueId id, Song song, IUploader uploader, DateTime uploadTime, string location)
            : base(id)
        {
            this.Song = song;
            this.Uploader = uploader;
            this.UploadTime = uploadTime;
            this.Location = location;
        }

        public Song Song { get; private set; }
        public IUploader Uploader { get; private set; }
        public DateTime UploadTime { get; private set; }
        public string Location { get; private set; }
    }
}
